package org.aswing;

extern class JList extends Container, implements LayoutManager, implements Viewportable, implements org.aswing.event.ListDataListener {
	function new(?p0 : Dynamic, ?p1 : ListCellFactory) : Void;
	function addLayoutComponent(p0 : Component, p1 : Dynamic) : Void;
	function addSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function addSelectionListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function addStateListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function clearSelection(?p0 : Bool) : Void;
	function contentsChanged(p0 : org.aswing.event.ListDataEvent) : Void;
	function ensureIndexIsVisible(p0 : Int) : Void;
	function getAnchorSelectionIndex() : Int;
	function getAutoDragAndDropType() : Int;
	function getCellByIndex(p0 : Int) : ListCell;
	function getCellFactory() : ListCellFactory;
	function getExtentSize() : org.aswing.geom.IntDimension;
	function getFirstVisibleIndex() : Int;
	function getHorizontalBlockIncrement() : Int;
	function getHorizontalUnitIncrement() : Int;
	function getItemIndexByCell(p0 : ListCell) : Int;
	function getLastVisibleIndex() : Int;
	function getLayoutAlignmentX(p0 : Container) : Float;
	function getLayoutAlignmentY(p0 : Container) : Float;
	function getLeadSelectionIndex() : Int;
	function getModel() : ListModel;
	function getPreferredCellWidthWhenNoCount() : Int;
	function getSelectedIndex() : Int;
	function getSelectedIndices() : Array<Dynamic>;
	function getSelectedValue() : Dynamic;
	function getSelectedValues() : Array<Dynamic>;
	function getSelectionBackground() : ASColor;
	function getSelectionForeground() : ASColor;
	function getSelectionMode() : Int;
	function getSelectionModel() : ListSelectionModel;
	function getVerticalBlockIncrement() : Int;
	function getVerticalUnitIncrement() : Int;
	function getViewPosition() : org.aswing.geom.IntPoint;
	function getViewSize() : org.aswing.geom.IntDimension;
	function getViewportPane() : Component;
	function getVisibleCellWidth() : Int;
	function getVisibleRowCount() : Int;
	function intervalAdded(p0 : org.aswing.event.ListDataEvent) : Void;
	function intervalRemoved(p0 : org.aswing.event.ListDataEvent) : Void;
	function invalidateLayout(p0 : Container) : Void;
	function isAutoDnDDropTargetAllown() : Bool;
	function isAutoDnDInitiatorAllown() : Bool;
	function isMutableModel() : Bool;
	function isSelectedIndex(p0 : Int) : Bool;
	function isSelectionEmpty() : Bool;
	function isTracksWidth() : Bool;
	function layoutContainer(p0 : Container) : Void;
	function maximumLayoutSize(p0 : Container) : org.aswing.geom.IntDimension;
	function minimumLayoutSize(p0 : Container) : org.aswing.geom.IntDimension;
	function preferredLayoutSize(p0 : Container) : org.aswing.geom.IntDimension;
	function removeLayoutComponent(p0 : Component) : Void;
	function removeSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function removeSelectionListener(p0 : Dynamic) : Void;
	function removeStateListener(p0 : Dynamic) : Void;
	function scrollRectToVisible(p0 : org.aswing.geom.IntRectangle, ?p1 : Bool) : Void;
	function scrollToBottomLeft() : Void;
	function scrollToBottomRight() : Void;
	function scrollToTopLeft() : Void;
	function scrollToTopRight() : Void;
	function selectAll(?p0 : Bool) : Void;
	function setCellFactory(p0 : ListCellFactory) : Void;
	function setFirstVisibleIndex(p0 : Int) : Void;
	function setHorizontalBlockIncrement(p0 : Int) : Void;
	function setHorizontalUnitIncrement(p0 : Int) : Void;
	function setLastVisibleIndex(p0 : Int) : Void;
	function setListData(p0 : Array<Dynamic>) : Void;
	function setModel(p0 : ListModel) : Void;
	function setPreferredCellWidthWhenNoCount(p0 : Int) : Void;
	function setSelectedIndex(p0 : Int, ?p1 : Bool) : Void;
	function setSelectedIndices(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function setSelectedValue(p0 : Dynamic, ?p1 : Bool) : Void;
	function setSelectedValues(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function setSelectionBackground(p0 : ASColor) : Void;
	function setSelectionForeground(p0 : ASColor) : Void;
	function setSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function setSelectionMode(p0 : Int) : Void;
	function setSelectionModel(p0 : ListSelectionModel) : Void;
	function setTracksWidth(p0 : Bool) : Void;
	function setVerticalBlockIncrement(p0 : Int) : Void;
	function setVerticalUnitIncrement(p0 : Int) : Void;
	function setViewPosition(p0 : org.aswing.geom.IntPoint, ?p1 : Bool) : Void;
	function setViewportTestSize(p0 : org.aswing.geom.IntDimension) : Void;
	function setVisibleCellWidth(p0 : Int) : Void;
	function setVisibleRowCount(p0 : Int) : Void;
	function updateListView() : Void;
	private var cellPane : CellPane;
	private function addCellToContainer(p0 : ListCell) : Void;
	private function addHandlersToCell(p0 : Component) : Void;
	private function createItemEventObj(p0 : Dynamic, p1 : String, p2 : flash.events.MouseEvent) : org.aswing.event.ListItemEvent;
	private function fireStateChanged(?p0 : Bool) : Void;
	private function getItemIndexByCellComponent(p0 : Component) : Int;
	private function removeCellFromeContainer(p0 : ListCell) : Void;
	private function removeHandlersFromCell(p0 : Component) : Void;
	static var AUTO_INCREMENT : Int;
	static var DND_COPY : Int;
	static var DND_MOVE : Int;
	static var DND_NONE : Int;
	static var MULTIPLE_SELECTION : Int;
	static var SINGLE_SELECTION : Int;
}
